<?php
namespace app\api\controller;

use app\BaseController;
use app\model\Article as SelfModel;
use app\model\ArticleType;

use think\facade\Cookie;
use think\Response;
use think\Request;
class Article extends Base
{


    public function initialize()
    {
        parent::initialize();
        $this->model = "\app\model\Article";
        $this->list_rows = 10;
        $this->index = ['id','title','single_pic','article_type_id','company_name','price','freight_fee','describe','create_time'];
        $this->all = ['id','title','article_type_id','article_type_title','single_pic','logo_pic','name','mobile','device_type','company_name','price','freight_fee','describe','index_status','status','create_time'];
        $this->my = ['id','title','article_type_id','article_type_title','single_pic','logo_pic','name','mobile','device_type','company_name','price','freight_fee','describe','index_status','status','create_time'];
        $this->view = ['id','title','single_pic','logo_pic','name','mobile','device_type','company_name','price','freight_fee','describe','create_time'];
        $this->msg = '文章';
        
        $this->status = [['status','=','1']];
    }




}
